package com.yt.order.provider.service.impl;

import com.yt.core.service.GenericServiceImpl;
import com.yt.order.api.interfaces.GroupOrderService;
import com.yt.order.api.model.GroupOrder;
import com.yt.order.provider.dao.GroupOrderDao;

/**
 * Created by liujunshi on 15-12-30.
 */
public class GroupOrderServiceImpl extends GenericServiceImpl<GroupOrder, Long> implements GroupOrderService {
	private GroupOrderDao dao;

	public GroupOrderServiceImpl() {
	}

	public GroupOrderServiceImpl(GroupOrderDao dao) {
		super(dao);
		this.dao = dao;
	}

	public Float getGroupOrderTotalAmount(Long groupOrderId){
		return this.dao.getGroupOrderTotalAmount(groupOrderId);
	}

}
